using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;

namespace secret_server.Models
{
    public class Character
    {
        public Guid Id { get; set; }

        public Guid WorldId { get; set; }
        public virtual World World { get; set; }

        public bool IsManual { get; set; }
        public Sex Sex { get; set; }
        public Blood Blood { get; set; }
        public Ellation Ellation { get; set; }

        public string Name  { get; set; } // only ai

        [Required]
        public string Avatar { get; set; }

        public int Age { get; set; }

        public int Height { get; set; } // cm

        [Required]
        public string Description { get; set; }

        public string Profession { get; set; }

        public string SourceArea { get; set; }
        public string SkinColor { get; set; }
        public string Background { get; set; }
        public string Picture { get; set; }

        public virtual IEnumerable<Topic> Topices { get; set; }
    }

    public enum Sex {
        [Display(Name="男")]
        Male = 1,
        [Display(Name="女")]
        Female  = 2
    }

    public enum Blood {
        A = 1,
        B = 2,
        AB = 3,
        O = 4
    }

    public enum Ellation {
        [Display(Name="白羊座")]
        Aries = 1,
        [Display(Name="金牛座")]
        Taurus = 2,
        [Display(Name="双子座")]
        Gemini = 3,
        [Display(Name="巨蟹座")]
        Cancer = 4,
        [Display(Name="狮子座")]
        Leo = 5,
        [Display(Name="处女座")]
        Virgo = 6,
        [Display(Name="天秤座")]
        Libra = 7,
        [Display(Name="天蝎座")]
        Scorpio = 8,
        [Display(Name="射手座")]
        Sagittarius = 9,
        [Display(Name="摩羯座")]
        Capricorn = 10,
        [Display(Name="水瓶座")]
        Aquarius = 11,
        [Display(Name="双鱼座")]
        Pisces = 12
    }
}
